package com.ydl.shopping.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.ydl.shopping.domain.TbRoleMenu;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Transactional
public interface ITbRoleMenuService extends IService<TbRoleMenu> {

    /**
     * 新增角色菜单
     *
     * @param roleId 角色ID
     * @param menuIds 菜单IDs
     * @return 错误消息/null
     */
    String saveRoleMenu(Long roleId, List<Long> menuIds);

    /**
     * 获取角色菜单IDs
     *
     * @param roleIds 角色IDs
     * @return 菜单IDs
     */
    List<Long> getRoleMenuIds(List<Long> roleIds);
}
